/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信Entity
 * @author Real
 * @version 2017-05-17
 */
public class WxConfig extends DataEntity<WxConfig>  {
	
	private static final long serialVersionUID = 1L;
	private String appname;		// 公众号名称
	private String ghid;		// 原始ID
	private String appid;		// Appid
	private String appsecret;		// Appsecret
	private String encodingaeskey;		// EncodingAESKey
	private String token;		// Token
	private String accessToken;		// access_token
	private Long expiresTime;
	private Integer accessTokenExpires;		// access_token_expires
	private String accessTokenLastat;		// access_token_lastat
	
	public WxConfig() {
		super();
	}

	public WxConfig(String id){
		super(id);
	}

	@Length(min=0, max=120, message="公众号名称长度必须介于 0 和 120 之间")
	public String getAppname() {
		return appname;
	}

	public void setAppname(String appname) {
		this.appname = appname;
	}
	
	@Length(min=0, max=100, message="原始ID长度必须介于 0 和 100 之间")
	public String getGhid() {
		return ghid;
	}

	public void setGhid(String ghid) {
		this.ghid = ghid;
	}
	
	@Length(min=0, max=50, message="Appid长度必须介于 0 和 50 之间")
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}
	
	@Length(min=0, max=50, message="Appsecret长度必须介于 0 和 50 之间")
	public String getAppsecret() {
		return appsecret;
	}

	public void setAppsecret(String appsecret) {
		this.appsecret = appsecret;
	}
	
	@Length(min=0, max=100, message="EncodingAESKey长度必须介于 0 和 100 之间")
	public String getEncodingaeskey() {
		return encodingaeskey;
	}

	public void setEncodingaeskey(String encodingaeskey) {
		this.encodingaeskey = encodingaeskey;
	}
	
	@Length(min=0, max=100, message="Token长度必须介于 0 和 100 之间")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
	@Length(min=0, max=255, message="access_token长度必须介于 0 和 255 之间")
	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	
	public Integer getAccessTokenExpires() {
		return accessTokenExpires;
	}

	public void setAccessTokenExpires( Integer accessTokenExpires) {
		this.accessTokenExpires = accessTokenExpires;
	}
	
	@Length(min=0, max=50, message="access_token_lastat长度必须介于 0 和 50 之间")
	public String getAccessTokenLastat() {
		return accessTokenLastat;
	}

	public void setAccessTokenLastat(String accessTokenLastat) {
		this.accessTokenLastat = accessTokenLastat;
	}

	public Long getExpiresTime() {
		return expiresTime;
	}

	public void setExpiresTime(Long expiresTime) {
		this.expiresTime = expiresTime;
	}
	
}